<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>智慧消防基础平台</title>
<script type="text/javascript">
var map = null;

</script>
<style>
	.my_title{
		background-color:grey;
		border-left:10px solid green;
	}
</style>
</head>
<body>
	<input type="hidden" id="userId" value="${sessionScope.user.id}"/>
	<input type="hidden" value="${count}" id="pageCount"/>
	<input type="hidden" value="${pageNo}" id="pageNo"/>
	<jsp:include page="top.jsp"></jsp:include>
	<div class="container-fluid" style="display:none;" id="msgShow">
		<div class="row-fluid">
			<div class="span12">
				<div class="alert">
					 <button type="button" class="close" data-dismiss="alert">×</button>
					<h4>
						${msg}
					</h4>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	var msg = '${msg}';
	if(msg){
		$("#msgShow").show();
		setTimeout(function(){
			$("#msgShow").hide();
		},3000);
	}
</script>
	<div class="container-fluid" style="padding: 0;">
		<div class="row" style="margin-left:0;width:100%;">
			<div class="navbar navbar-inner block-header">
				<div class="muted pull-left">当前位置：${topName}>${urlName}</div>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span2" id="sidebar" style="width:130px;margin-right:10px;margin-left:20px;">
				<jsp:include page="left.jsp"></jsp:include>
			</div>

			<!--/span-->
			<div class="span10" id="content">
				<!-- <div class="row-fluid">
					<div class="alert alert-success">
						<button type="button" class="close" data-dismiss="alert">&times;</button>
						<h4>Success</h4>
						The operation completed successfully
					</div>
				</div> -->
				<jsp:include page="${jspName}.jsp"></jsp:include>
			</div>
		</div>
	</div>
	<hr>
	<script type="text/javascript" src="js/app.js"></script>
	<script type="text/javascript">
		$('.datetimepicker').datetimepicker({
		    format: 'yyyy-mm-dd hh:ii'
		});
	</script>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=aPSHmAIncRGfhbNEdsfCZTlj"></script>
	<script type="text/javascript">
	if($("#allmap").length){
		map = new BMap.Map("allmap");            // 创建Map实例
		/* map.centerAndZoom(new BMap.Point(116.404, 39.915), 11); */
		/* var local = new BMap.LocalSearch(map, {
		  renderOptions:{map: map, autoViewport:true}
		}); */
		map.centerAndZoom("宁波",15); 
		var point = new BMap.Point(121.596355,29.880427);
		map.addOverlay(new BMap.Marker(point));// 创建标注
		$.ajax({
			url:"loadAllGrid.json",
			dataType:'json',
			success:function(resp){
				var dataList = resp.dataList;
				for(var i=0;i<dataList.length;i++){
					var lng = dataList[i].lng,
					lat = dataList[i].lat;
					point = new BMap.Point(lng,lat);
					map.addOverlay(new BMap.Marker(point));// 创建标注
				}
			}
		});
	}
		/* map.addEventListener("click",function(e){
		    //alert(e.point.lng + "," + e.point.lat);
		    var point = new BMap.Point( e.point.lng ,e.point.lat);
			map.addOverlay(new BMap.Marker(point));// 创建标注
			e.preventDefault();
			e.stopPropagation();
		}); */
	</script>
	<!-- <footer>
	<p>&copy; Vincent Gabriel 2013</p>
	</footer> -->
	</div>
</body>
</html>